import request from '@/utils/request.js'


//添加专业
export const ProfessionAddService = (professionData) => {
    return request.post('/profession', professionData)
}

//修改专业
export const ProfessionUpdateService = (professionData) => {
    return request.put('/profession', professionData)
}

//删除专业
export const ProfessionDeleteService = (id) => {
    return request.delete('/profession?id=' + id)
}

//修改专业
export const ProfessionUpdateStatusService = (id) => {
    return request.put('/profession/status', id)
}

//分页获取
export const ProfessionListByPageService = (currentPage, pageSize) => {
    return request.get('/profession', {
        params: {
            page: currentPage,
            size: pageSize
        }
    })
}

//搜索获取专业信息
export const ProfessionListBySearchService = (input,select,currentPage,pageSize) =>{
    return request.get('/profession/search', {
        params: {
            input: input,
            select: select,
            page: currentPage,
            size: pageSize
        }
    })
}

export const ProfessionListAllSerivce = () =>{
    return request.get('/profession/all')
}